package com.gt.controller.user;


import com.gt.pojo.PageResult;
import com.gt.pojo.Result;
import com.gt.pojo.dto.NoticeDTO;
import com.gt.pojo.dto.NoticePageQueryDTO;
import com.gt.pojo.vo.NoticeVO;
import com.gt.service.NoticeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RequestMapping("user/notice")
@RestController(value = "userNoticeController")
@Api(tags = "学生查询公告模块")
public class NoticeController {
    @Autowired
    private NoticeService noticeService;

    @GetMapping("/page")
    @ApiOperation("公告分页查询")
    public Result<PageResult>page( NoticePageQueryDTO noticePageQueryDTO){
        PageResult pageResult = noticeService.pageQuery(noticePageQueryDTO);
        return Result.success(pageResult);
    }

}
